package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum QuestionRelevantEnum {
    INVESTOR((byte) 1, "投资相关"),
    BORROWER((byte) 2, "借款相关")
    ;
    public final Byte value;
    public final String desc;


    public static QuestionRelevantEnum enumOf(Byte value) {
        for (QuestionRelevantEnum questionIdentityTagEnum : values()) {
            if (questionIdentityTagEnum.value.equals(value)) {
                return questionIdentityTagEnum;
            }
        }
        return null;
    }
}
